public class Homework2{
	public static void main(String [] args ){
		A a = new A();
		String [] str = {"jack","lucy"};
		int index = a.find("june",str);
		System.out.println(""+ index);
	}
}

class A {
	public  int find(String findstr,String[]str){
		for (int i = 0; i < str.length ;i++){
			if (findstr == str[i] ){
				return i;
			}
		}
		return -1;
	}
}